Don't return uninitialized pointers
authorMatthias Clasen <mclasen@redhat.com>
Thu, 13 Aug 2009 13:45:04 +0000 (09:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 13 Aug 2009 13:47:20 +0000 (09:47 -0400)
This was giving me segfaults somewhere else.

gtk/gtkiconview.c

index 240e3739cdcf07aa451d6a1e16d93529889892aa..c517b0fb90eac8b5a3e77c425df4bd85b0bba121 100644 (file)
@@ -3503,11 +3503,11 @@ gtk_icon_view_get_item_at_coords (GtkIconView          *icon_view,
                    }
                }
 
-             if (only_in_cell)
-               return NULL;
-             
              if (cell_at_pos)
                *cell_at_pos = NULL;
+
+             if (only_in_cell)
+               return NULL;
            }
 
          return item;